<?php



/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

Route::get('ajax',function() {
    return view('ajax/message');
 });
Route::post('/getmsg','AjaxController@index');

Route::group(['namespace'=>'File', 'prefix' => 'file'], function() {
    //
    
    Route::get('/', 'FileController@index');
    Route::post('/uploadfile','FileController@showUploadFile');
});

Route::group(['namespace'=>'Article', 'prefix' => 'blog'], function() {
    //
    // Route::get('/{id}', 'ArticleController@show');
    // Route::get('/', 'ArticleController@index');
    // http://localhost/blog/article   访问链接
    Route::resource('article', 'ArticleController');
});
